﻿namespace Script.Tools
{
    public class Singleton<T> where T : new()
    {
        
        public static T Instance => Nested.instance;
        
        class Nested
        {
            static Nested()
            {
            }
            internal static readonly T instance = new T();
        }
        
    }
}